package com.nondo.rdp.finance.repository.log;

import com.nondo.rdp.auth.domain.User;
import com.nondo.rdp.finance.domain.log.SignLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Date;
import java.util.List;

public interface SignLogRepository extends JpaRepository<SignLog, Long>, JpaSpecificationExecutor<SignLog> {
    SignLog save(SignLog signLog);

    List<SignLog> findByUserAndCreateDateBetween(User user, Date createStartDate, Date createEndDate);

    SignLog findByUserAndCreateDateAfter(User user, Date createStartDate);
}
